﻿/**
 * 用戶數據對象
 * @author LuoDong
 * @email luo4521@online.net.tw
 * 2010-2-8 9:44
 */
package com.addcn.common.data
{	
	public class  UserInfoData 
	{		
		private var _id : int;
		private var _key : String;
		private var _user_data : Object;
		private static var _instance : UserInfoData;
		
		public function UserInfoData() : void
		{
			if(_instance != null){
				throw("[UserInfoData] 為單例類");				
			}
		}
		
		public static function  getInstance() : UserInfoData
		{
			if (_instance == null) {
				_instance = new UserInfoData();				
			}
			return _instance;
		}	
		
		public function get id() : int
		{
			return this._id;
		}		
		public function set id(r_id : int) : void
		{
			this._id = r_id;
		}
		
		public function set key(r_key : String) : void
		{
			this._key = r_key;
		}
		public function get key() : String
		{
			return this._key;
		}
		
		//設置數據 
		public function set data(r_data : Object) : void
		{
			this._user_data = r_data;
		}
		
		public function get data() : Object
		{
			return this._user_data;
		}
		
			
		
	}
	
}
